package com.git.bds.mr.hospital.convert;

import com.git.bds.mr.hospital.model.domain.Sector;
import com.git.bds.mr.hospital.model.vo.SectorVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author 成大事
 * @since 2022/9/19 17:01
 */
@Mapper
public interface SectorConvert {

    SectorConvert INSTANCE = Mappers.getMapper(SectorConvert.class);

    /**
     * 科室信息list
     *
     * @param sectorList 科室列表
     * @return {@link List}<{@link SectorVO}>
     */
    List<SectorVO> toSectorVO(List<Sector> sectorList);
}
